/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

/**
 * <p>Project: jse2303 - Proxy1</p>
 * <p>Powered by webrx On 2023-07-28 17:17:39</p>
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Proxy1 {
    public static void main(String[] args) {
        House h = new House();
        h.show();

        System.out.println("-------------------");
        House hn = new HenanHouse();
        hn.show();
    }
}


class House {
    public void show() {
        System.out.println("租房子...");
    }
}

class HenanHouse extends House {
    public void show() {
        System.out.println("连接数据库");
        super.show();
        System.out.println("连接数据库");
    }
}
